$def with(feedbacks, offset, limit, pagesp, form)
$var title: 意见反馈
$var gmap: 0

<h1>意见反馈</h1>

<div class="left_side">
    <div id="feedback">
        <ul>
            $for i in feedbacks:
                $if loop.index % 2 == 0:
                    <li style="background-color:#F8F8F3">
                $else:
                    <li>
                <span class="pl">$i['username'] @$i['atime']</span>
                $if context.super:
                    <span class="pl"><a href="feedback_reply?fdid=$i['id']">回复</a></span>
                <p>$i['descr']</p>
                $if i['reply']:
                    <p class="reply">
                        管理员回复：$i['reply']
                    </p>
                </li>
        </ul>
    </div>
    <div class="split">
        <a href="/feedback?offset=0">起始页</a>
        $if pagesp['more_front']:
            <a href="/feedback?offset=$((int(pagesp['start_page'])-1)*int(limit))">更多</a>
        $for i in range(pagesp['start_page'], pagesp['end_page']+1):
            <a href="/feedback?offset=$(int(i)*int(limit))">$(int(i) + 1)</a>
        $if pagesp['more_end']:
            <a href="/feedback?offset=$((int(pagesp['end_page'])+1)*int(limit))">更多</a>
        <a href="/feedback?offset=$(int(pagesp['end_offset'])*int(limit))">尾页</a>
    </div>
    <br />
    <p style="color:gray">您的建议</p>
    <form method="POST">
        <ul>
            <li>姓名: $:form.username.render()</li>
            <li>内容: $:form.descr.render()</li>
            <li><input class="submit" type="submit" value="提交"/></li>
        </ul>
    </form>
</div>
<div class="right_side">
</div>
